home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form3
- Caption = "Object Types"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 2325
- LinkTopic = "Form3"
- ScaleHeight = 3195
- ScaleWidth = 2325
- StartUpPosition = 1 'CenterOwner
- Begin VB.ListBox List1
- Height = 2010
- ItemData = "CreateObj.frx":0000
- Left = 135
- List = "CreateObj.frx":0002
- TabIndex = 2
- Top = 75
- Width = 2025
- End
- Begin VB.CommandButton btnOK
- Caption = "OK"
- Height = 465
- Left = 165
- TabIndex = 1
- Top = 2655
- Width = 810
- End
- Begin VB.CommandButton btnCancel
- Caption = "Cancel"
- Default = -1 'True
- Height = 465
- Left = 1350
- TabIndex = 0
- Top = 2670
- Width = 810
- End
- Begin VB.Label Label1
- Caption = "Select the type of object to Create."
- Height = 360
- Left = 180
- TabIndex = 3
- Top = 2190
- Width = 1980
- End
- Attribute VB_Name = "Form3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub btnCancel_Click()
- Form1.F1Book1.Tag = "Cancel"
- Unload Form3
- Form1.Show
- End Sub
- Private Sub btnOK_Click()
- If List1.ListIndex = -1 Then
- MsgBox "Make a selection."
- Exit Sub
- End If
- Form1.F1Book1.Tag = List1.Text
- Unload Form3
- Form1.Show
- End Sub
- Private Sub Form_Load()
- List1.AddItem "Line"
- List1.AddItem "Rectangle"
- List1.AddItem "Oval"
- List1.AddItem "Arc"
- List1.AddItem "Button"
- List1.AddItem "CheckBox"
- List1.AddItem "ComboBox"
- List1.AddItem "Chart"
- End Sub
-